'''
python 的 orm (object relationship mapping) 框架
构造函数用来实例化函数
析构函数是释放对象占用的空间
'''
class Person:
    def __int__(self,*args):
        if args:
            self.__pno = args[0]
            self.__name = args[1]
            self.__age = args[2]
            self.__address =args[3]

    @property
    def pno(self):
        return self.__pno

    @pno.setter
    def pno(self,new_pno):
        self.__pno = new_pno

    @property
    def name(self):
        return self.__name

    @name.setter
    def name(self, new_name):
        self.__name = new_name

    @property
    def age(self):
        return self.__age

    @age.setter
    def age(self, new_age):
        self.__age = new_age

    @property
    def address(self):
        return self.__address

    @address.setter
    def address(self, new_address):
        self.__address = new_address